package com.cy.server.mapper;

import com.cy.server.dto.RoleDto;
import com.cy.server.pojo.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiShaoZhuo
 * @since 2021-04-26
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * @Description: 根据id获取角色
     * @Param: adminId
     * @return:
     * @Author: LiShaoZhuo
     * @Date: 2021/4/29
     */
    List<Role> getRolesByAdminId(Integer adminId);

    /**
     * @Description: 角色信息分页
     * @Param: roleDto
     * @return:
     * @Author: LiShaoZhuo
     * @Date: 2021/4/30
     */
    List<Role> selectRole(RoleDto roleDto);
}
